package com.ethink.order.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.ethink.order.api.info.GroupMateInfo;
import com.ethink.order.api.request.GroupMateAddRequest;
import com.ethink.order.api.request.GroupMateQueryRequest;
import com.ethink.order.api.request.GroupMateUpdateRequest;
import com.ethink.order.api.response.GroupMateAddResponse;
import com.ethink.order.api.response.GroupMateDetailResponse;

import java.util.List;

/**
 * 组套商品表 Service接口
 *
 * @author default
 * @date 2023-02-22
 */
public interface GroupMateService {

    /**
     * 分页查询
     *
     * @param request
     * @return
     */
    Page<GroupMateInfo> queryGroupMate(GroupMateQueryRequest request);

    /**
     * 查询详情
     *
     * @param groupMateId
     * @return
     */
    GroupMateDetailResponse getGroupMateById(Long groupMateId);

    /**
     * 查询列表
     *
     * @param request
     * @return
     */
    List<GroupMateInfo> listGroupMate(GroupMateQueryRequest request);

    /**
     * 新增
     *
     * @param request
     * @return
     */
    GroupMateAddResponse addGroupMate(GroupMateAddRequest request);

    /**
     * 修改
     *
     * @param request
     * @return
     */
    Boolean updateGroupMate(GroupMateUpdateRequest request);

    /**
     * 删除
     *
     * @param groupMateId
     * @return
     */
    boolean deleteGroupMate(Long groupMateId);

    /**
     * 根据渠道查商品
     *
     * @param saleSubChannel
     * @return
     */
    List<String> getGroupMateSkuList(String saleSubChannel);

    GroupMateDetailResponse getGroupMateByGroupMateSku(String saleSubChannel, String groupMateSku);

}